FUNCTION

sha256

pure function sha256(input: byte_array): byte_array

Compute the SHA-256 digest (hash) of the given byte array.

Parameters

  • input — the data to digest

Returns

the SHA-256 digest as a byte array of length 32

Since

0.10.6

Alias of crypto.sha256

© 2026 Chromia